<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
</script>
<template>
  <div style="width: 1200px; margin: 0 auto">
    <el-row :gutter="20">
      <el-col :span="4">
        <div class="nav">
          <div class="nav-item t-center">个人中心</div>
          <div class="nav-child-item t-center" @click="router.push('/mine/personal')">个人资料</div>
          <div class="nav-item t-center">交易管理</div>
          <div class="nav-child-item t-center" @click="router.push('/mine/myOrder')">我的订单</div>
        </div>
      </el-col>
      <el-col :span="20">
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<style lang="scss" scoped>
.nav {
  width: 100%;
  background-color: #efefef;
}
.nav-item {
  height: 50px;
  line-height: 50px;
  color: #666;
  font-size: 14px;
  font-weight: bold;
}
.nav-child-item {
  @extend .nav-item;
  color: rgb(162, 162, 162);
  font-weight: 400;
  cursor: pointer;
  &:hover {
    background-color: #bfbfbf;
  }
}
</style>
